nc
Execute system call directly. nc
do not depend on std
.
Usage
Add this to Cargo.toml
:
[]
= "0.4"
Examples
Get file stat:
let mut statbuf = stat_t default;
match stat
Fork process:
let pid = fork;
match pid
Kill self:
let pid = getpid;
let ret = kill;
// Never reach here.
println!;
Stable version
For stable version of rustc, please install a C compiler (gcc
or clang
) first.
As asm!
feature is unavailable in stable version.
Related projects
License
This library is release in Apache License.